projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1748361
)
* lisp/tab-bar.el: Fix the recent removal of substring as a gv-place.
author
Juri Linkov
<juri@linkov.net>
Sat, 24 Dec 2022 18:04:56 +0000
(20:04 +0200)
committer
Juri Linkov
<juri@linkov.net>
Sat, 24 Dec 2022 18:04:56 +0000
(20:04 +0200)
(tab-bar-auto-width): Copy more logic from 'cl--set-substring' (bug#60297).
lisp/tab-bar.el
patch
|
blob
|
history
diff --git
a/lisp/tab-bar.el
b/lisp/tab-bar.el
index 0bab3aba801c193541b179db390745675e03b977..7433f5c8e51211511ab92580e688be25f7ce5e3f 100644
(file)
--- a/
lisp/tab-bar.el
+++ b/
lisp/tab-bar.el
@@
-1116,7
+1116,8
@@
tab bar might wrap to the second line when it shouldn't.")
(del-pos2 (if close-p -1 nil)))
(while continue
(setq name (concat (substring name 0 del-pos1)
- (substring name del-pos2)))
+ (and del-pos2
+ (substring name del-pos2))))
(setq curr-width (string-pixel-width name))
(if (and (> curr-width width)
(< curr-width prev-width))